package com.lenovo.server.weixin.util;

import javax.servlet.http.HttpServletRequest;

import com.lenovo.server.weixin.slog;

public class ContextUtil {

	public static String getServerPath(HttpServletRequest request){
		String path = request.getContextPath();
		String basePath = request.getScheme() + "://"
				+ request.getServerName() + ":" + request.getServerPort()
				+ path + "/";
		
		System.out.println("path " + path + "  " + basePath);
		slog.p("getServierPath " + path + "   " + basePath);
		return basePath;
	}
}
